/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sv.edu.ufg.mir.Calcula.Area;

/**
 *
 * @author javaee
 */
public class Cuadrado {
    private double largo;
    
    public Cuadrado(){
        this.largo=0;
    }

    public Cuadrado(double largo) {
        this.largo = largo;
    }

    public double getLargo() {
        return largo;
    }

    public void setLargo(double largo) {
        this.largo = largo;
    }

    @Override
    public String toString() {
        return "Cuadrado{" + "largo=" + largo + '}';
    }
    
    public double CalcularArea(){
        double area=this.largo * this.largo;
        return area;
    }
    
    
}
